<?php
if(isset($doctype))
	echo $doctype;
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php
if(isset($title))
	echo $title;

if(isset($meta)){
    foreach($meta as $meta_tag){
        echo $meta_tag.PHP_EOL;
    }
}

if(isset($css_tags)){
    foreach($css_tags as $css_tag){
        echo $css_tag.PHP_EOL;
    }
}

if(isset($js_tag)){
    echo $js_tag.PHP_EOL;
}

if(isset($misc_head)){
    echo $misc_head.PHP_EOL;
}
?>
</head>